<%= error_messages_for 'link' %>

<!--[form:link]-->
<p>
<label for="link_title">LinkType:</label>
<select id="link_parent_id" name="link[parent_id]" > 
<option value="0">-无上级分类-</option>
<%=options_from_collection_for_select (@plink, "id", "title",@link.parent_id) %> 
</select>
</p>

<p><label for="link_title">Title</label><br/>
<%= text_field 'link', 'title'  %></p>

<p><label for="link_description">Description</label><br/>
<%= text_field 'link', 'description'  %></p>

<p><label for="link_weburl">Weburl</label><br/>
<%= text_field 'link', 'weburl'  %></p>

<p><label for="link_position">Position</label><br/>
<%= text_field 'link', 'position'  %></p>

<p>
<%= check_box 'link', 'visible'  %>
<label for="link_visible">Visible</label>
</p>
<!--[eoform:link]-->

